exchangerate=input("币值")
if exchangerate[-2:]in['CN','cn','Cn','cN']:
    An=(eval(exchangerate[0:-2]))/6.7
    print(format(An))
elif exchangerate[-2:]in['AN','an','An','aN']:
    Cn=(eval(exchangerate[0:-2]))*6.7
    print(format(Cn))
else:
    print("wrong")
